package com.sds.sweng.swat.miplatform.ui.design.figures.logical;

import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.Graphics;

import com.sds.sweng.swat.miplatform.ui.design.layouts.FlowLayoutEx;
import com.sds.sweng.swat.miplatform.ui.design.utils.FontUtils;

public class LEmailFigure extends Figure {

	private LEditBoxFigure emailId;
	private LTextFigure emailAt;
	private LEditBoxFigure emailDomain;
	private LComboBoxFigure emailSelectDomain;

	public LEmailFigure() {
		FlowLayoutEx layout = new FlowLayoutEx();
		layout.setMinorSpacing(3);
		layout.setMajorSpacing(4);
		setLayoutManager(layout);

		emailId = new LEditBoxFigure();
		emailId.setSize(112, 20);
		add(emailId);

		emailAt = new LTextFigure();
		emailAt.setText("@");
		emailAt.setSize(12, 20);
		add(emailAt);

		emailDomain = new LEditBoxFigure();
		emailDomain.setSize(112, 20);
		add(emailDomain);

		emailSelectDomain = new LComboBoxFigure();
		emailSelectDomain.setSize(135, 20);
		add(emailSelectDomain);

		setSize(380, 20);
	}

	protected void paintFigure(Graphics graphics) {
		super.paintFigure(graphics);
	}

}
